home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / library / queue.lzh / queue / queue.h < prev    next >
C/C++ Source or Header  |  1995-10-12  |  794b  |  37 lines

  1. /*
  2.    queue.h --- queue library definitions.
  3.  
  4.    (c) Copyright 1995 SHW Wabnitz
  5.    Written by Bernhard Fastenrath (fasten@shw.com)
  6.  
  7.    This file may be distributed under the terms
  8.    of the GNU General Public License.
  9. */
  10.  
  11. #ifndef QUEUE_H
  12. #define QUEUE_H
  13.  
  14. typedef APTR QHandle;
  15.  
  16. typedef struct {
  17.   struct MinNode  qm_MinNode;
  18.   USHORT      qm_Status;
  19.   USHORT      qm_Refs;
  20.   ULONG          qm_Replies;
  21.   QHandle         qm_Owner;
  22. } QMessage;
  23.  
  24. /* modes for QOpen (name, mode) */
  25. #define QMODE_LISTEN 0x1
  26. #define QMODE_SEND   0x2
  27.  
  28. QHandle QOpen (STRPTR name, ULONG mode, ULONG sigbit);
  29. ULONG QClose (QHandle qh);
  30. void QAddMsg (QHandle qh, QMessage *msg);
  31. void QRemMsg (QHandle qh, QMessage *msg);
  32. QMessage *QGetMsg (QHandle qh);
  33. ULONG QReplyMsg (QHandle qh);
  34. ULONG QFlush (QHandle qh);
  35.  
  36. #endif /* QUEUE_H */
  37.